package net.monare.mifss;

import org.springframework.context.annotation.Scope;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.stereotype.Component;

/**
 * Created by jernej on 4/15/14.
 */

//
@Component
@Scope("session")
public class MifssSecurityContext implements SecurityContext {

    private Authentication authentication;

    @Override
    public Authentication getAuthentication() {

        return authentication;
    }

    @Override
    public void setAuthentication(Authentication authentication) {
        this.authentication = authentication;
    }
}
